package JDBC;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class jdbc_user {
    public static Connection getConnection() throws SQLException {
        String url="jdbc:oracle:thin:@127.0.0.1:1521:orcl";
        String user="ZWK";
        String password="root";
        try {
            Class.forName("oracle.jdbc.driver.OracleDriver");
        }catch(Exception e){
            e.printStackTrace();
        }
        Connection conn= DriverManager.getConnection(url,user,password);
        return conn;
    }
}
